package com.zhuanzhuan.hero.user.service.impl;

import com.zhuanzhuan.hero.user.helper.PanguHelper;
import com.zhuanzhuan.hero.user.pojo.bo.BrandBO;
import com.zhuanzhuan.hero.user.pojo.bo.ModelBO;
import com.zhuanzhuan.hero.user.service.IPanGuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName PanGuCategoryServiceImpl
 * @Description
 * @Author hanjunjun
 * @Date 2024/6/25 19:22
 */
@Service
@Slf4j
public class PanGuServiceImpl implements IPanGuService {

    @Resource
    private PanguHelper panguHelper;

    @Override
    public List<BrandBO> getAllBrandByCate(Integer cateId) {
        return panguHelper.getAllBrandByCate(cateId);
    }

    @Override
    public List<ModelBO> getAllModelByCateAndBrand(Integer cateId, Integer brandId) {
        return panguHelper.getAllModelByCateAndBrand(cateId, brandId);
    }
}
